package NGUYENHUUDUCARRAYEX;

import java.util.Scanner;

public class ex2 {
	public static void main(String[] args) {
		double[]So;
		So=new double[10];
		Scanner sc = new Scanner(System.in);
		for(int i=0;i<So.length;i++){
			System.out.println("So ["+i+"]: ");
		So[i]=sc.nextDouble();
		}
		double tb=0,total=0;
		for(double DValue:So){
			total+=DValue;
			tb=(total)/10;
		System.out.println("DValue = "+DValue);
		}
		System.out.println("TB = "+tb);
	}
}
